<h1>Listing actualities</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Content</th>
    <th>User</th>
  </tr>

<% @actualities.each do |actuality| %>
  <tr>
    <td><%=h actuality.title %></td>
    <td><%=h actuality.content %></td>
    <td><%=h actuality.user_id %></td>
    <td><%= link_to 'Show', :controller => "admin/actualities", :action => "show", :id => actuality.id %></td>
    <td><%= link_to 'Edit', edit_admin_actuality_path(actuality) %></td>
    <td><%= link_to 'Destroy', {:controller => "admin/actualities", :action => :destroy, :id => actuality.id}, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New actuality', new_admin_actuality_path %>